﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Dissemination.MVC.ViewModels.SurveyViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<asp:Literal runat="server" Text="<%$ Resources:Literals, ApplicationTitle%>" /> &middot; Surveys management &middot; Activate survey
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="BreadcrumbContent" runat="server">
    <%= Html.ActionLink(Model.Survey.Program.ProgramName, "Details", "Program", new {id=Model.Survey.Program.ProgramID}, null) %> &gt; Activate survey
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Activate Survey</h1>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>

        <fieldset id="survey_active">

            <%= Html.EditorFor(model => model.Survey, new { Model.Years }) %>
            
            <p class="enlaces">
                <a href="#" onclick="document.forms[0].submit()" > Activate Survey </a>
                <%= Html.ActionLink("Cancel", "Details", "Program", new {id=Model.Survey.Program.ProgramID}, null) %>
            </p>
        
            <div class="limpia"></div>
        </fieldset>

    <% } %>
</asp:Content>
